function sendRequest() {
  // Content-Type: application/json
  const data = {
    name: '张智琦',
    age: 18
  }

  axios
    .post('http://127.0.0.1/api/post/json', data)
    .then(res => {
      console.log(res.status)
      console.log(res.data)
    })
    .catch(err => {
      console.log(err)
    })
}
